<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace Util;

function ASCIIAZ($arrayData)
{
    ksort($arrayData);
    $data1 = http_build_query($arrayData);
    $data2 = urldecode($data1);
    return $data2;
}
function RSA2sign($signatureContent, $private_key_data)
{
    $private_key_str = "-----BEGIN RSA PRIVATE KEY-----\n" . wordwrap($private_key_data, 64, "\n", true) . "\n-----END RSA PRIVATE KEY-----\n";
    $private_key = openssl_pkey_get_private($private_key_str);
    openssl_sign($signatureContent, $signature, $private_key, OPENSSL_ALGO_SHA256);
    $sign = base64_encode($signature);
    return $sign;
}
function PostJson($Posturl, $jsonData)
{
    $url = $Posturl;
    $options = ["http" => ["header" => "Content-type: application/json\r\n", "method" => "POST", "content" => $jsonData]];
    $context = stream_context_create($options);
    $response = file_get_contents($url, false, $context);
    if($response === false) {
        echo "Failed to send POST request.";
    } else {
        return $response;
    }
}
function Postformdata($url, $data)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_HTTPHEADER, ["Expect:"]);
    curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    $output = curl_exec($ch);
    curl_close($ch);
    return $output;
}
function PicToTow($img)
{
    $fp = fopen($img, "rb");
    $content = fread($fp, filesize($img));
    $md1 = md5($content);
    return $md1;
}
function DeleteValue($jsonString)
{
    $arrayData = json_decode($jsonString, true);
    if(isset($arrayData["biz_content"])) {
        $arrayData["biz_content"] = json_decode($arrayData["biz_content"], true);
    }
    $arrayData1 = json_encode($arrayData);
    return $arrayData1;
}

?>